const jsonParse = require('../../lib/jsonParse.js')
const formidable = require("formidable");

module.exports = {
  async uploadPic(request, response, handler) {
    const form = formidable({ multiples: false })
    form.parse(request, (err, fields, files) => {
      if (err) {
        responseEnd(err)
      }
      console.log(fields, files)
      // const file = files.file
      // saveFile(file)
    })
  }
}